package com.wenshi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenshi.system.domain.DeviceData;
import com.wenshi.system.mapper.DeviceDataMapper;
import com.wenshi.system.service.DeviceDataService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceDataServiceImpl extends ServiceImpl<DeviceDataMapper,DeviceData> implements DeviceDataService {

    @Override
    public List<DeviceData> selectAllDeviceData(Long deviceId) {
        List<DeviceData> deviceDataList = baseMapper.selectAllDeviceData(deviceId);
        return deviceDataList;
    }

    @Override
    public boolean saveDeviceData(DeviceData deviceData) {
        boolean result = baseMapper.saveDeviceData(deviceData);
        return result;
    }
}
